$(function(){
	$( '.planlink' ).each(function(){
		var jqthis = $(this);
		var html1 = jqthis.find('span').html();
		if(html1){
			jqthis.tooltip({content: html1, position:{ my: "left+5 top+5", at: "left bottom", collision: "flipfit" }});
		}
	});
	
	if(typeof G_PID != 'undefined'){
		$('#btn'+G_PID).addClass('planlinkact');
		$('#btn'+G_PID).attr('href','#');
	}
	
	$( "#accordion" ).accordion({ active: 0, heightStyle: "content" });
});